From: Matthias Clasen Date: Thu, 24 May 2012 03:37:09 +0000 (-0400) Subject: Add an initial-setup mode X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6529 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=41c3795a7bb2aab606524449392417918b18d717;p=gnome-shell.git Add an initial-setup mode Use the newly introduced kiosk mode functionality, and define an 'initial-setup' mode that is suitable for https://live.gnome.org/GnomeOS/Design/Whiteboards/InitialSetup https://bugzilla.gnome.org/show_bug.cgi?id=676697 --- diff --git a/js/ui/main.js b/js/ui/main.js index 6adcd03f4..8d7c48e19 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -99,6 +99,10 @@ function createGDMSession() { }); } +function createInitialSetupSession() { + networkAgent = new NetworkAgent.NetworkAgent(); +} + function _initRecorder() { let recorderSettings = new Gio.Settings({ schema: 'org.gnome.shell.recorder' }); let bindingSettings = new Gio.Settings({ schema: 'org.gnome.shell.keybindings' }); diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index 124b876e6..f4f171d9a 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -55,6 +55,28 @@ const _modes = { } }, + 'initial-setup': { hasOverview: false, + hasAppMenu: false, + showCalendarEvents: false, + allowSettings: false, + allowExtensions: false, + allowKeybindingsWhenModal: false, + hasRunDialog: false, + hasWorkspaces: false, + createSession: Main.createInitialSetupSession, + extraStylesheet: null, + statusArea: { + order: [ + 'a11y', 'keyboard', 'volume' + ], + implementation: { + 'a11y': imports.ui.status.accessibility.ATIndicator, + 'keyboard': imports.ui.status.keyboard.XKBIndicator, + 'volume': imports.ui.status.volume.Indicator + } + } + }, + 'user': { hasOverview: true, hasAppMenu: true, showCalendarEvents: true,